<template>
  <div>
    <!-- 首页入口 -->
    <div class="home-entry">
      <div class="container">
        <!-- 左侧分类 -->
        <HomeCategory />
        <!-- 轮播图 -->
        <HomeBanner />
      </div>
    </div>
    <!-- 新鲜好物 -->
    <HomeNew />
    <!-- 人气推荐 -->
    <HomeHot />
    <!-- 热门推荐 -->
    <HomeBrand />
    <!-- 产品模块 -->
    <HomeProduct />
    <!-- 最新专题 -->
    <HomeSpecial />
  </div>
</template>

<script>
import { ref } from 'vue'
import HomeCategory from './components/home-category'
import HomeBanner from './components/home-banner.vue'
import HomeNew from './components/home-new.vue'
import HomeHot from './components/home-hot.vue'
import HomeBrand from './components/home-brand.vue'
import HomeProduct from './components/home-product.vue'
import HomeSpecial from './components/home-special.vue'
export default {
  name: 'HomePage',
  components: {
    HomeCategory,
    HomeBanner,
    HomeNew,
    HomeHot,
    HomeBrand,
    HomeProduct,
    HomeSpecial
  },
  setup () {
    const show = ref(true)
    return { show }
  }
}
</script>

<style scoped lang="less">
// 使用Tranistion组件实现动画 （显示/隐藏 创建/移除）
// 进入
// .v-enter-from {
//   opacity: 0;
// }
// v-enter-active {
//   transition: all .2s;
// }
// v-enter-to {
//   opacity: 1;
// }
// 离开

</style>
